package com.yonyougov.devops.cruxcisupport.lifecycle;

import com.yonyougov.devops.cruxcisupport.util.CruxDevOpsIdGenerator;
import com.yonyougov.devops.fwc.core.entity.BasicEntity;
import com.yonyougov.devops.fwc.core.id.IdGenerator;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigInteger;

/***
 * t_lifecycle
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class LifecycleEntity extends BasicEntity implements Serializable {

    /***
     * id
     */
    private BigInteger id;

    /***
     * startScrpt
     */
    private String startScript;

    /***
     * endScript
     */
    private String endScript;


    //<!--用户自定义代码开始-->
    public IdGenerator idGenerator() {
        return new CruxDevOpsIdGenerator();
    }
    //<!--用户自定义代码结束-->
}
